package com.ifonly.core;

import com.ifonly.config.Configuration;
import com.ifonly.handler.Handlers;
import com.ifonly.interceptor.GlobalInterceptors;
import com.ifonly.logger.Logger;
import com.ifonly.mvc.ActionMapper;
import com.ifonly.plugin.Plugins;

/**
 * @author <a href="mailto:ifonlymaster@163.com">ifonly</a>
 * @version 1.0 2015-12-10 10:26
 * @since JDK 1.6
 */
public abstract class IfOnlyConfig {
    protected Logger logger;
    protected ClassContainer classContainer = ClassContainer.getInstance();
    protected Configuration cfg = Configuration.getInstance();

    public void initLogger() {
        logger = Logger.getLogger(IfOnlyConfig.class);
    }

    public abstract void configAction(ActionMapper actionMapper);

    public abstract void configInterceptor(GlobalInterceptors interceptors);

    public abstract void configPlugin(Plugins plugins);

    public abstract void configHandler(Handlers handlers);
}
